<%@ page import="java.util.Vector" %>
<%@ page import="Bean.Blog" %><%--
  Created by IntelliJ IDEA.
  User: liushiyin
  Date: 2017/11/15
  Time: 19:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <script type="text/javascript" src="JQuery/jquery-3.2.1.min.js"></script>
    <link rel="stylesheet" type="text/css" href="css/demo.css">
    <link rel="stylesheet" type="text/css" href="css/iziModal.css">
    <link rel="shortcut icon" href="res/icon.png"/>
    <link rel="stylesheet" href="css/jquery.autoMenu.css">
    <style>
        .content { width: 700px; margin: 0 auto; position: relative;
            top: 130px;  padding-right: 20px}
        h3{ line-height:60px}
    </style>
    <link href="css/head.css" rel="stylesheet" type="text/css">
    <title>作者博客</title>
</head>
<body>
<%@include file="head.jsp"%>
<div class="content">
    <%
        Vector<Blog> list=(Vector<Blog>) request.getAttribute("bloglist");
        if(list==null){
            request.getRequestDispatcher("/getblog").forward(request, response);
        }else if(list.size()>0){
            for(int i=0;i<list.size();++i){
                Blog blog=list.get(i);
                out.print("<h3>"+blog.getBlogTitle()+"</h3>"+blog.getBlogText());
            }
        }
    %>
</div>
<div class="autoMenu" id="autoMenu" data-autoMenu> </div>
<script src="JQuery/jquery-3.2.1.min.js"></script>
<script src="js/jquery.autoMenu.js"></script>
</body>
</html>
